package com.blog.web.manage;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.blog.model.Page;
import com.blog.model.ResultJSON;
import com.blog.model.TableJson;
import com.blog.pojo.Technique;
import com.blog.service.MemberService;

/** 
 * @author ant 
 * @date 创建时间：2017年8月29日 下午4:09:27  
 */
@RestController
@RequestMapping("/manage/person")
public class MemberApiController {
	
	@Autowired
	private MemberService memberService;
	
	@RequestMapping(value="/techniqueList",method=RequestMethod.POST)
	public TableJson getTechniqueList(Technique technique,Page page) {
		TableJson json = memberService.getTechniqueList(technique, page);
		return json;
	}
	
	@RequestMapping(value="/techniqueEdit",method=RequestMethod.POST)
	public ResultJSON editTechnique(String act,Technique technique) {
		ResultJSON json = memberService.editTechnique(act, technique);
		return json;
	}

}
